#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int a = 0, b = 0, c = 0, max = 0, mid = 0, min = 0;
	while (scanf("%d %d %d", &a, &b, &c) != EOF)
	{
		if (a > b)
		{
			max = a;
			min = b;
		}
		else
		{
			max = b;
			min = a;
		}
		if (c > max)
		{
			mid = max;
			max = c;
		}
		//else if (c > min)
			//mid = c;
		else if (c > min)
			mid = c;
		else
		{
			mid = min;
			min = c;



		}
		printf("%d %d %d", max, mid, min);
	}
	
	return 0;	


}
		
	
